import { Module } from '@nestjs/common';
import { APP_INTERCEPTOR } from '@nestjs/core';
import { HttpInterceptor } from './interceptor/http.interceptor';
import { DemoModule } from './module/demo/demo.module';

@Module({
    imports: [DemoModule],
    controllers: [],
    providers: [
        {
            provide: APP_INTERCEPTOR,
            useClass: HttpInterceptor,
        },
    ],
})
export class AppModule {}
